<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    var arr = ["张三", "李四", "王五", "赵六"];

    /*console.log(arr.pop());
    console.log(arr);*/

    /*arr.shift();
    console.log(arr);*/

    /*arr.unshift("二狗");
    console.log(arr);*/

   /* arr.push("哈哈哈");
    console.log(arr);*/

    /*arr.push(arr.shift());
    console.log(arr);*/

    arr.unshift(arr.pop());
    console.log(arr);

</script>
</body>
</html>